The Gini Coefficient

A visual, step-by-step introduction to the world's most widely used measure of income inequality.

Part 1

What Is the Gini Coefficient?

Imagine you live in a country with just 5 people. If everyone earned exactly the same income, that would be perfect equality. If just one person earned everything and the other four earned nothing, that would be perfect inequality.

The Gini coefficient is a single number between 0 and 1 (or 0 and 100 when expressed as a percentage) that tells you where a population sits on this spectrum โ€” whether income is distributed more equally or more unequally. It was invented by the Italian statistician Corrado Gini in 1912. The "population" can be a country (like Sweden), a region, a city, or any group of people.

The scale: A Gini of 0 means everyone earns the same (leaning fully towards equality). A Gini of 100 means one person earns everything (leaning fully towards inequality). Most countries fall between 25 and 45.

Two Imaginary Countries, Each With 5 People

Both countries have the same total income โ€” โ‚ฌ100,000 โ€” but distribute it very differently:

๐Ÿก "Equaland"

๐Ÿ‘ค ๐Ÿ‘ค ๐Ÿ‘ค ๐Ÿ‘ค ๐Ÿ‘ค
Person 1: โ‚ฌ20,000
Person 2: โ‚ฌ20,000
Person 3: โ‚ฌ20,000
Person 4: โ‚ฌ20,000
Person 5: โ‚ฌ20,000
Total: โ‚ฌ100,000
Gini = 0

๐Ÿ๏ธ "Unequaland"

๐Ÿ‘ค ๐Ÿ‘ค ๐Ÿ‘ค ๐Ÿ‘ค ๐Ÿ‘‘
Person 1: โ‚ฌ5,000
Person 2: โ‚ฌ5,000
Person 3: โ‚ฌ5,000
Person 4: โ‚ฌ5,000
Person 5: โ‚ฌ80,000
Total: โ‚ฌ100,000
Gini = 48

Same total wealth, completely different distribution. The Gini captures this difference in one number. We'll keep following these two countries throughout this guide. But how is the Gini actually calculated? To understand that, we first need one simple concept: cumulative shares.

Part 2

Cumulative Shares of Population and Income

The trick behind the Gini is to transform raw incomes into two running totals that we can compare against each other. Here's how it works:

First, we rank all 5 people from the lowest income to the highest. Then, going person by person, we calculate two cumulative (running-total) shares: what percentage of the total population have we counted so far, and what percentage of the total income have they earned together?

๐Ÿก Equaland

Person Income Cum. % Pop. Cum. % Income
P1โ‚ฌ20k20%20%
P2โ‚ฌ20k40%40%
P3โ‚ฌ20k60%60%
P4โ‚ฌ20k80%80%
P5โ‚ฌ20k100%100%

The two cumulative columns grow at the same rate โ€” perfectly equal.

๐Ÿ๏ธ Unequaland

Person Income Cum. % Pop. Cum. % Income
P1โ‚ฌ5k20%5%
P2โ‚ฌ5k40%10%
P3โ‚ฌ5k60%15%
P4โ‚ฌ5k80%20%
P5 ๐Ÿ‘‘โ‚ฌ80k100%100%

The bottom 80% earn only 20% of income โ€” the income column lags far behind.

The key insight: In a perfectly equal population, every 20% of people always accounts for exactly 20% of total income โ€” the two cumulative columns match step for step. The more unequal a population is, the more the cumulative income share lags behind the cumulative population share. If we plot these two columns against each other on a graph, the gap between them reveals inequality at a glance. That graph has a name โ€” it's called the Lorenz Curve, and that's what Part 3 is about.
Part 3

Visualising It: The Lorenz Curve

Now let's turn those tables into a picture. We put the cumulative share of the population on the x-axis and the cumulative share of income on the y-axis. Each row from the table becomes a point on the graph, and connecting them gives us a curve. This is the Lorenz Curve, named after the American economist Max Lorenz who introduced it in 1905.

For Equaland, the two shares always match (20% = 20%, 40% = 40%, etc.), so the curve is a straight diagonal line โ€” the line of equality. For Unequaland, the income share lags behind the population share, so the curve sags below the diagonal. The more it sags, the more unequal the distribution.

Click the buttons below to see our two imaginary countries and then compare them to real-world distributions:

๐Ÿก Equaland โ€” Perfect Equality
Gini = 0
Everyone earns โ‚ฌ20,000. The Lorenz curve sits right on the equality line โ€” no gap at all.

Notice how the curve sags further from the diagonal as inequality increases. The area of that gap between the diagonal and the curve is exactly what the Gini coefficient measures. But how do we turn a shape on a graph into a single number? That's what Part 4 explains.

Part 4

From Curve to Number: The Formula

Look at the diagram below. The space between the line of equality (the diagonal) and the Lorenz curve is coloured in red โ€” we call it area A. Everything below the Lorenz curve is coloured in blue โ€” area B. Together, A and B fill the entire triangle beneath the diagonal.

The Gini coefficient is simply the ratio of the gap (area A) to the whole triangle (A + B):

Gini = A รท (A + B)
When both axes go from 0 to 1, the triangle (A + B) always has an area of exactly ยฝ.
So the formula simplifies to:
Gini = 2 ร— A

This is why the Gini always falls between 0 and 1:

If everyone earns the same

The Lorenz curve is the diagonal.
Area A = 0, so there's no gap.

Gini = 0

If one person earns everything

The Lorenz curve hugs the bottom-right corner.
Area A fills the whole triangle (= ยฝ).

Gini โ†’ 1
In plain language: The Gini coefficient measures how much the Lorenz curve sags below the line of equality. More sag = bigger area A = higher Gini = the population leans more towards inequality.

Scales: 0โ€“1 or 0โ€“100?

You'll see Gini on a 0โ€“1 scale (as a coefficient, e.g. 0.29) or a 0โ€“100 scale (as an index, e.g. 29). They mean the same thing โ€” just multiply by 100. Eurostat and most policy reports use 0โ€“100; many academic papers use 0โ€“1.

Part 5

Gini Across Europe (2024)

Now that we understand what the Gini measures and how it's calculated, let's look at real data. This map shows Eurostat's Gini coefficients for equivalised disposable income across the EU in 2024. Hover over the dots to explore.

More equal (21)
Less equal (38)

Ranking: All EU Countries

Sorted from most equal (lowest Gini) to least equal (highest Gini).

Part 6

Key Takeaways

The Gini coefficient gives you a single, comparable number for any population โ€” you can instantly see that Slovakia (21.7) distributes income more evenly than Bulgaria (38.4). Because it's standardised and tracked over time by institutions like Eurostat and the World Bank, it's a powerful tool for comparing inequality across countries, regions, or time periods.

Remember: The Gini is a useful starting point, not the full story. It's best used alongside other measures โ€” like poverty rates, median income, and wealth distribution โ€” to build a richer picture of inequality in any population.